]> dgit.raspbian.org Git - gnome-shell.git/commit
test-theme: Check return value of chdir()
authorWill Thompson <wjt@endlessm.com>
Tue, 21 Apr 2020 12:44:57 +0000 (13:44 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 21 Apr 2020 13:00:23 +0000 (15:00 +0200)
commit6f881f232e17c0570a72437e71d4648dccfdf3e2
tree1b22a43f91c4161810fe68b468e364ef50e6a339
parentbe12c71534199a1a1fd0a334d046ddb85c6f165e
test-theme: Check return value of chdir()

I noticed the following warning while building the .deb package for
gnome-shell on Endless OS:

      ../src/st/test-theme.c: In function ‘main’:
      ../src/st/test-theme.c:549:3: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
         chdir (cwd);
         ^~~~~~~~~~~

(Of course this is very unlikely to fail in practice.)

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1208
src/st/test-theme.c